<template>
  <div class="like">
    <p><span class="iconfont">&#xe755;</span>猜你喜欢</p>
    <div v-for="item in LImgUrl" :key="item.id" class="dv">
      <div class="left">
        <img :src="item.img">
        <span>{{item.buy}}</span>
      </div>
      <div class="right">
        <div class="head">{{item.title}}</div>
        <div class="comment">
          <span class="iconfont">&#xe6b0;&#xe6b0;&#xe6b0;&#xe6b0;&#xe6b0;</span>
          <span>{{item.main}}</span>
        </div>
        <div class="gold">
          <p><span class="rmb">￥</span><span class="my">{{item.money}}</span>起</p>
          <p>{{item.place}}</p>
        </div>
        <div class="remarks"><span>{{item.article}}</span></div>
      </div>
    </div>
    <div class="select">查看所有产品</div>
  </div>
</template>

<script>
  export default {
    name: 'like',
    props: {
      LImgUrl: {
        type: Array,
      }
    },
    data() {
      return {

      }
    }
  }
</script>

<style scoped>
  .like {
    background-color: white;
  }

  .like>p {
    margin: auto 10px;
    height: 50px;
    line-height: 50px;
    font-size: 16px;
  }

  .like p span {
    color: #FF5360;
    font-size: 22px;
  }

  .like .dv {
    display: flex;
    margin: 10px;
    border-bottom: 1px solid #F0F0F0;
  }

  .dv .left {
    flex: 1;
    margin-right: 10px;
    position: relative;
  }

  .dv .left img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }

  .dv .left span {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 50px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background-color: #FFB436;
    color: white;
    font-size: 10px;
  }

  .dv .right {
    flex: 2.2;
    padding-top: 5px;
  }

  .dv .right .head {
    line-height: 20px;
    font-size: 16px;
  }

  .dv .right .comment {
    line-height: 30px;
    color: #B47961;
    font-size: 12px;
  }

  .dv .right .comment .iconfont {
    color: #FFB436;
    padding-right: 10px;
    font-size: 12px;
  }

  .dv .right .gold {
    display: flex;

  }

  .dv .right .gold p {
    line-height: 30px;
    flex: 1;
    font-size: 12px;
    color: #B47961;
  }

  .dv .right .gold p:first-child {
    text-align: left;
  }

  .dv .right .gold p:first-child .rmb {
    font-size: 12px;
    color: #FF8300;
  }

  .dv .right .gold p:first-child .my {
    font-size: 20px;
  }

  .dv .right .gold p:last-child {
    text-align: right;
  }

  .dv .right .remarks {
    line-height: 30px;

  }

  .dv .right .remarks span {
    color: #FF5597;
    font-size: 12px;
    background-color: #FFF9F9;
  }

  .select {
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: skyblue;
    font-size: 14px;
  }
</style>
